# -*- coding: utf-8 -*-
# @Time : 2021/7/3 22:58
# @Author : 摘星星的小女孩
# @Email : wayne_lau@aliyun.com
# @File : page_ecshop_front_my_red_packet.py
# @Project : ecshop
from selenium.webdriver.common.by import By


class PageEcshopFrontMyRedPacket():
    def __init__(self, driver):
        self.driver = driver
        # 元素定位符loc
        self.loc_ele_my_red_packet = (By.XPATH, '/html/body/div[7]/div[1]/div/div/div/div/a[9]')
    #我的账户
    def ele_my_red_packet(self):
        self.driver.find_element(*self.loc_ele_my_red_packet).click()#点击【我的红包】

